﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMS.Core.Math
{
    public abstract class MultivariableEquation<T> : Equation<IConvertible>
    {
        private List<string> _variables;
        public IEnumerable<string> Variables
        {
            get { return _variables; }
        }

        public MultivariableEquation()
        {
            _variables = new List<string>();
        }

        public virtual void AddVariable(string variable)
        {
            //TODO: Some verification
            _variables.Add(variable);
        }

        public virtual void RemoveVariable(string variable)
        {
            //TODO: Some verification
            _variables.Remove(variable);
        }

        public abstract T Solve(IEnumerable<T> values);
    }
}
